package cn.com.ejiakanghu.dto;

import org.linlinjava.litemall.db.domain.AgedmallHospitalSend;

import java.math.BigDecimal;

/**
 * @author wj
 * @date 2021/12/7 16:11
 */
public class HospitalSendData {

    private Integer id;

    private String hospital;

    private String province;

    private String city;

    private String village;

    private String address;

    private BigDecimal lng;

    private BigDecimal lat;

    private BigDecimal price;

    private Integer hour;

    private Integer isSub;

    public HospitalSendData() {
    }

    public HospitalSendData(Integer id, String hospital, String province, String city, String village, String address, BigDecimal lng, BigDecimal lat, BigDecimal price, Integer hour, Integer isSub) {
        this.id = id;
        this.hospital = hospital;
        this.province = province;
        this.city = city;
        this.village = village;
        this.address = address;
        this.lng = lng;
        this.lat = lat;
        this.price = price;
        this.hour = hour;
        this.isSub = isSub;
    }

    public HospitalSendData(AgedmallHospitalSend hospitalSend) {
        this.id = hospitalSend.getId();
        this.hospital = hospitalSend.getHospitalName();
        this.province = hospitalSend.getProvince();
        this.city = hospitalSend.getCity();
        this.village = hospitalSend.getVillage();
        this.address = hospitalSend.getAddressDetail();
        this.lng = hospitalSend.getLng();
        this.lat = hospitalSend.getLat();
        this.price = hospitalSend.getUrgentCost();
        this.hour = hospitalSend.getDeliveryTime();
        this.isSub = hospitalSend.getSubscribe();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getHospital() {
        return hospital;
    }

    public void setHospital(String hospital) {
        this.hospital = hospital;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getVillage() {
        return village;
    }

    public void setVillage(String village) {
        this.village = village;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public BigDecimal getLng() {
        return lng;
    }

    public void setLng(BigDecimal lng) {
        this.lng = lng;
    }

    public BigDecimal getLat() {
        return lat;
    }

    public void setLat(BigDecimal lat) {
        this.lat = lat;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getHour() {
        return hour;
    }

    public void setHour(Integer hour) {
        this.hour = hour;
    }

    public Integer getIsSub() {
        return isSub;
    }

    public void setIsSub(Integer isSub) {
        this.isSub = isSub;
    }
}
